// src/routes/routes.tsx
import type { RouteObject } from "react-router-dom";

// 页面组件
import HomePage from "../view/HomeView";
import ChatPage from "../view/ChatView";

// 路由配置数组
const routes: RouteObject[] = [
  {
    path: "/",
    element: <HomePage />
  },
  {
    path: "/chat",
    element: <ChatPage />
  }
];

export default routes;